package pta;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * @author tmh
 * @date 2024/12/18 22:12
 * @description
 */
public class T7_2分解质因数 {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        List<Integer> list = new ArrayList<>();
        int number = s.nextInt();
        int num = number;
        for (int i = 2; i <= number; i++) {
            if (num % i == 0) {
                num = num / i;
                list.add(i);
                i = 1;
            }
        }
        for (int i = 0; i < list.size(); i++) {
            if (i == 0) {
                System.out.print(num + "=" + list.get(i));
            } else {
                System.out.print("*" + list.get(i));
            }
        }
    }

}
